package com.bluestar.tools.module.footerview;

import com.bluestar.tools.R;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import java.util.List;

import androidx.annotation.NonNull;

/**
 * @author : lifei
 * 创建时间： 20-1-17
 * 更改时间： 20-1-17
 * Email : allen.lee723@qq.com
 * @version :
 * Description：
 */
public class FooterAdapter extends BaseQuickAdapter<FooterBean, BaseViewHolder> {

    public FooterAdapter(List<FooterBean> data) {
        super(R.layout.item_footer, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, FooterBean item) {
        helper.setImageResource(R.id.item_footer_icon, item.getIconResId());
        helper.setText(R.id.item_footer_title_tv, item.getTitle());
    }
}